<div class="page-content" >
	<div class="panel panel-default">
		<div class="panel-heading">
			<ul class="breadcrumb">
				<li><a href="<{:U('index')}>">管理</a> </li>
				<li class="active">
					<if condition="$data.user_name eq ''">信息
						<else />
						信息</if>
				</li>
			</ul>
		</div>
		<div class="panel-body">
			<form id="myform" method="post" class="form-horizontal" action="<{:U('insert')}>">
				<input type="hidden" name="id" value="<{$data.user_id}>">
				<div class="form-group">
					<label for="input-title" class="col-sm-2 control-label">用户名</label>
					<div class="col-sm-7" style="margin-top:8px;">
						<if condition="$data.user_name eq ''">
							<input type="text" class="form-control" id="username" name="user_name" value="<{$data.user_name}>">
							<else />
							<{$data.user_name}> </if>
					</div>
				</div>
				
				<!--<div class="form-group">
                                <label for="input-title" class="col-sm-2 control-label">登陆密码</label>
                                <div class="col-sm-7">
                                    <input type="password" class="form-control" id="password" name="password" >
                            
                                </div>
                            </div>-->
				
				<div class="form-group">
					<label for="input-title" class="col-sm-2 control-label">昵称</label>
					<div class="col-sm-7">
						<input type="text" class="form-control" id="nickname" name="nickname" value="<{$data.nickname}>">
					</div>
				</div>
				<div class="form-group">
					<label for="input-title" class="col-sm-2 control-label">姓名</label>
					<div class="col-sm-7">
						<input type="text" class="form-control"  name="name" value="<{$data.name}>">
					</div>
				</div>
				<div class="form-group">
					<label for="input-title" class="col-sm-2 control-label">电话</label>
					<div class="col-sm-7">
						<input type="text" class="form-control"  name="phone" value="<{$data.phone}>">
					</div>
				</div>
				<div class="form-group">
					<label for="input-title" class="col-sm-2 control-label">邮箱</label>
					<div class="col-sm-7">
						<input type="text" class="form-control"  name="email" value="<{$data.email}>">
					</div>
				</div>
				<div class="form-group">
					<label for="input-title" class="col-sm-2 control-label">性别</label>
					<div class="col-sm-7"> <input type="radio"  name="sex" value="1" 
						<if condition="$data['sex'] eq 1">checked="checked"</if>
						>男 <input type="radio"  name="sex" value="2" 
						<if condition="$data['sex'] eq 2">checked="checked"</if>
						>女 </div>
				</div>
				<div class="form-group">
					<label for="input-title" class="col-sm-2 control-label">生日</label>
					<div class="col-sm-7">
						<input type="text" class="form-control"  name="birthday" value="<{$data.birthday}>">
					</div>
				</div>
				
				<!--  <div class="form-group">
                                <label for="input-title" class="col-sm-2 control-label">职位</label>
                                <div class="col-sm-7">
                                    <input type="text" class="form-control"  name="jobtype" value="<{$data.jobtype}>">
                                    
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="input-title" class="col-sm-2 control-label">部门</label>
                                <div class="col-sm-7">
                                    <input type="text" class="form-control"  name="bumen" value="<{$data.bumen}>">
                                    
                                </div>
                            </div>-->
				
				<input type="hidden" name="store_id"  value="<{$store_id}>" />
				<div class="form-group">
					<div class="col-sm-7" align="center">
						<button class="btn btn-primary" type="submit">确&nbsp;&nbsp;定</button>
					</div>
				</div>
			</form>
		</div>
	</div>
</div>

<script>
 
$(function(){
    $(".form-horizontal").bootstrapValidator({
        message: '您填入的值不合法',
        fields:{
		 real_name: {
                message: '姓名',
                validators: {
                    notEmpty: {
                        message: '姓名不能为空'
                    },
                }
            },
            school_id: {
                message: '学校名称',
                validators: {
                    notEmpty: {
                        message: '学校名称不能为空'
                    },
                }
            },
			province_id: {
                message: '省份',
                validators: {
                    notEmpty: {
                        message: '请选择省份'
                    },
                }
            },
			/* class_id: {
                message: '班级',
                validators: {
                    notEmpty: {
                        message: '请选择班级'
                    },
                }
            },*/
			mobile: {
                message: '手机',
                validators: {
                   regexp: {
                        regexp: /^(0?1\d{10})$/,
                        message: '请输入正确手机：11位手机号'
                    }
                }
            },
			qq: {
                message: 'qq',
                validators: {
                   integer: {
                        message: '请输入正确qq号'
                    }
                }
            },
			email: {
                message: '邮箱',
                validators: {
                   emailAddress: {
                        message: '请输入正确邮箱'
                    }
                }
            },
			/*enrollment_dt: {
                message: '入学时间',
                validators: {
                   date: {
                        message: '请输入正确的时间'
                    }
                }
            },*/
			age: {
                message: '年龄',
                validators: {
                   integer: {
                        message: '请输入正确年龄'
                    }
                }
            },
			gender: {
                message: '性别',
                validators: {
                   notEmpty: {
                        message: '请选择性别'
                    }
                }
            },
			
			  

        }
    });
	
 
});
 </script>
